package com.caopeng.javaee.service.ServiceImpl;

import com.caopeng.javaee.dao.CourseJpa;
import com.caopeng.javaee.entity.course;
import com.caopeng.javaee.service.CourseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @program: javaee
 * @description: 课程类实现
 * @author: caopeng
 * @create: 2018-12-08 13:09
 **/
@Service
public class CourseServiceImpl implements CourseService{
    @Autowired
    private CourseJpa coursejpa;

    @Override
    public course CfindById(int id) {
        return coursejpa.findById(id);
    }

    @Override
    public void Csave(course thecourse) {
        coursejpa.save(thecourse);
    }

}

